package com.byit.Test.Mytest1;

/**
 * @ClassName Thread4
 * @Description TODO
 * @Author lxp
 * @Date 2018/10/8 0008
 **/
public class Thread4 implements Runnable {

    private String name;

    public Thread4(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        int count = 10;
        try {
            while (count>0){
                System.out.println(name);
                count--;
            }
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
